package com.ddm.controller.vx;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.ddm.context.BaseContext;
import com.ddm.entity.vxEntity.BonusPoints;
import com.ddm.result.Result;
import com.ddm.service.vxService.BonusPointService;
import com.ddm.vo.vxVo.ContestStatisticsVO;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin/contest")
public class AdminContestController {
    
    @Autowired
    private BonusPointService bonusPointService;
    
    @GetMapping("/statistics")
    public Result<ContestStatisticsVO> getContestStatistics(){
        // 管理端可以查看所有用户的统计信息
        return Result.success(bonusPointService.getContestStatistics());
    }
}
